@import "vars";

.jw-dock {
    clear: right; // This allows it to be positioned beneath the logo
    margin: @ui-margin / 2;
    display: block;
    opacity: 1;

    .jw-breakpoint-0 & {
      margin: (@ui-margin * 0.15) ((@ui-margin * 0.15) / 2);
    }

    .jw-breakpoint-1 & {
      margin: (@ui-margin * 0.3) ((@ui-margin * 0.3) / 2);
    }

    &:after {
        content: '';
        clear: both;
        display: block;
    }
}

.jw-dock-button {
    cursor:pointer;
    float: right;
    height: 2.5em;
    margin: 0.5em;
    position: relative;
    width: 2.5em;

    .jw-breakpoint-0 & {
      margin: 0 ((@ui-margin * 0.15) / 2);
      height: @mobile-touch-target;
      width: @mobile-touch-target;
    }

    .jw-breakpoint-1 & {
      margin: 0 ((@ui-margin * 0.3) / 2);
      height: @mobile-touch-target;
      width: @mobile-touch-target;
    }

    .jw-arrow {
        display: none;
        position: absolute;
        bottom: -0.2em;
        width: 0.5em;
        height: 0.2em;
        left: 50%;
        margin-left: -0.25em;
    }

    .jw-overlay {
        display: none;
        position: absolute;
        top: 2.5em;
        right: 0em;
        margin-top: 0.25em;
        padding: 0.5em;
        white-space: nowrap;
    }

    &:hover .jw-overlay,
    &:hover .jw-arrow {
        display: block;
    }

}

.jw-dock-image {
    width: 100%;
    height: 100%;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    opacity: 0.75;
}
